Release 10.1A: OpenEdge Development:
Progress 4GL Reference


BROWSE widget

A browse widget lets you see data and select records from all the records associated with a database query. You can define a static browse widget with the DEFINE BROWSE statement or a dynamic browse widget with the CREATE BROWSE statement. The CREATE BROWSE is valid only in a graphical interface. A browse can be either a read-only tool for browsing through records, or it can be an editing tool for updating records, depending on the options you specify.

You can move and resize the browse and its components. Specifically, in graphical interfaces, you can move and resize the browse, move and change the width of the browse-column, and change the height of the browse-row. You can do all this through direct manipulation (by pointing, clicking, and dragging) and through the 4GL. For more information, see OpenEdge Development: Progress 4GL Handbook .

You can also use the mouse wheel to scroll the browse widget horizontally and vertically in Windows. When you rotate the mouse wheel up and down, the browse scrolls vertically up and down. When you rotate the mouse wheel up and down while holding down the CTRL key, the browse scrolls horizontally left and right. You can specify the number of rows the browse scrolls up and down per click of the mouse wheel on the Wheel tab in the Windows Mouse Properties dialog box (accessed through the Windows Control Panel).

The following figure shows a read-only browse widget:

The following figure shows an updateable browse. Note the inline editing capability in the focused row:

Attributes

When describing browse attributes, it is important to understand the scope of each attribute. An attribute can apply to:

When you want to reference an attribute that applies to the browse as a whole, the correct syntax is as follows:

browse-name:attribute-name IN FRAME frame-name  (for a static browse)
OR
browse-handle:attribute-name      (for a dynamic or static browse) 

The IN FRAME qualifier is only necessary for a static browse to avoid ambiguity.

When an attribute applies to a column or a cell, the identifier is the field or variable name as listed in the DEFINE BROWSE statement. This identifier is known as the column name. The browse column’s widget-handle may also be used. Here is the syntax:

column-name:attribute-name IN BROWSE browse-name  (static browse column)
OR
column-handle:attribute-name       (dynamic or static browse column) 

The IN BROWSE qualifier is only necessary for a static browse to avoid ambiguity, but it is good programming practice to always include it, especially when you reference the same field as a separate widget type.

The following table lists all the attributes for the browse widget, whether they are readable and writeable, and their scope:

Attribute
Applies to
Browse
Column
Column
Cell
Browse, cell
Column
Browse, cell
Column
Column
Column
Column
Browse
Column
Column
Browse
Browse
Browse
Browse
Browse
Cell
Column
Browse, cell
Column
Browse
Browse
Browse
Column
Column
Browse
Browse, cell
Browse
Browse
Browse
Browse
Browse, cell
Browse
Browse
Browse
Browse
Browse
Browse
Browse, cell
Browse, cell
Browse, cell
Browse, column
Browse
Browse
Cell
Column
Browse
Column
Column
Column
Column
Browse
Browse
Browse
Browse
Browse
Browse, column
Browse, column
Browse, column
Browse
Browse, cell
Browse
Column
Browse
Browse
Browse
Browse
Browse
Browse
Browse
Browse
Browse
Browse
Browse
Cell
Browse
Column
Browse
Browse
Browse, column
Browse
Browse, column
Browse
Browse, column
Browse, cell
Browse
Browse
Browse
Browse
Cell
Browse
Browse
Browse
Column
Column
Column
Browse
Browse
Browse
Browse
Browse
Column
Column
Browse
Browse
Browse
Browse
Browse
Browse
Browse, cell
Browse
Browse, column
Browse
Browse, column
Browse, column
Browse
Browse, cell
Browse, cell
  1. Graphical interfaces only.
  2. Character interfaces only.
  3. Windows only.
  4. Windows only for column only.

Methods

 

Events

  1. Windows only.

See also

The chapter on the browse in OpenEdge Development: Progress 4GL Handbook .


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095